package com.itchu.common.exption;

import lombok.Getter;

@Getter
public enum ExceptionEnum {

    // 枚举的成员（枚举成员其本质就是枚举类的实例） ps:枚举成员要放在最前面,而且是用逗号隔开
    MUSIC_INVALID_USERNAME(400,"用户名重复"),
    MUSIC_INVALID_PHONE(400,"用户名重复"),
    MUSIC_INVALID_USERNAME_PASSWORD_ERROR(400,"用户名或密码错误"),
    MUSIC_INVALID_CHECKCODE(400,"验证码错误"),
    MUSIC_INVALID_UNAUTHRIZED(401,"登录失效或未登录"),
    MUSIC_NOT_CHILDCATEGORY(400,"登录失效或未登录"),
    MUSIC_NOT_SONGS(400,"没有该歌曲"),
    MUSIC_NOT_SONGLISTS(400,"没有该歌单"),
    MUSIC_NOT_SINGERS(400,"没有该歌手"),
    MUSIC_NOT_COMMENT(400,"没有评论"),
    MUSIC_ALREDY_SCORE(400,"你已经评论过了"),
    MUSIC_FAIL_USER(400,"更新用户失败"),
    MUSIC_FAIL_AUTHOR(401,"认证失败"),
    MUSIC_NOT_SONGLISTCATEGORY(401,"该分类下没有歌单");


    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message  ;
    }
}
